com.supermap.ar.areffect

Class CameraWindowRenderer

  • java.lang.Object
    • com.supermap.ar.areffect.CameraWindowRenderer


  • public class CameraWindowRenderer
    extends java.lang.Object
    Camera window renderer Render the corresponding window in the map dynamic layer when the phone is looking down at the ground
    • Method Detail

      • getPlaneHeight

        public float getPlaneHeight()
        Gets the ground height, default -1.3 m
        Returns:
      • setPlaneHeight

        public void setPlaneHeight(float planeHeight)
        Set ground height
        Parameters:
        planeHeight -
      • getVertices

        public java.util.List<android.graphics.Point> getVertices()
        Gets vertex set degree
        Returns:
      • setVertices

        public void setVertices(java.util.List<android.graphics.Point> vertices)
        43/5000 Set the vertex set of the window (in pixels px) A set of points that must be ordered end to end
        Parameters:
        vertices - eg: int left = efView.getLeft(); int top = efView.getTop(); int bottom = efView.getBottom(); int right = efView.getRight(); cameraWindowRenderer.setVertices(Arrays.asList( new Point(left,top),new Point(right,top),new Point(right,bottom),new Point(left,bottom),new Point(left,top) ));
      • getMaxDistance

        public float getMaxDistance()
        Gets the furthest distance to render
        Returns:
      • setMaxDistance

        public void setMaxDistance(float maxDistance)
        Sets the maximum render distance, less than or equal to the far clipping plane distance, default is 5
        Parameters:
        maxDistance -
      • isEnabled

        public boolean isEnabled()
        Get enabled status
        Returns:
      • setEnabled

        public void setEnabled(boolean enabled)
        Setting the Enable Status
        Parameters:
        enabled -
      • setDynamicResult

        public void setDynamicResult(DynamicPolygon dynamicPolygon)
        Sets dynamic objects for dynamic layer rendering
        Parameters:
        dynamicPolygon -
      • refresh

        public void refresh(long ms)
        refresh
        Parameters:
        ms - Interval for refreshing
      • refresh

        public void refresh()
        refresh
      • dispose

        public void dispose()
        The destruction
             Free native layer memory